package com.zretc.device.entity;


/**
 * 普通员工登陆
 * 
 * @author 卢耀锋
 *
 */
public class User {
	// 用户名
	private String username;
	// 昵称/姓名
	private String usercode;
	// 密码
	private String password;
	// 是否记住密码,默认不记住
	private int select;
	// 用户类型
	private int radio;
	// 初始化
	private static User user1 = null;

	public User(String username, String password, int select, int radio) {
		super();
		this.username = username;
		this.password = password;
		this.select = select;
		this.radio = radio;
	}

	// 定义一个静态方法
	public static void setInfo(String username, String password, int Select,int radio) {
		user1 = new User(username, password, Select,radio);
	}

	// 返回值
	public static User getInfo() {
		return user1;
	}

	public User() {
		// TODO Auto-generated constructor stub
	}

	public User(String username, String usercode, String password) {
		super();
		this.username = username;
		this.usercode = usercode;
		this.password = password;
	}

	@Override
	public String toString() {
		return "User [username=" + username + ", usercode=" + usercode + ", password=" + password + "]";
	}

	
	
	/**
	 * @return the radio
	 */
	public int getRadio() {
		return radio;
	}

	/**
	 * @param radio the radio to set
	 */
	public void setRadio(int radio) {
		this.radio = radio;
	}

	/**
	 * @return the select
	 */
	public int getSelect() {
		return select;
	}

	/**
	 * @param select the select to set
	 */
	public void setSelect(int select) {
		this.select = select;
	}

	/**
	 * @return the usercode
	 */
	public String getUsercode() {
		return usercode;
	}

	/**
	 * @param usercode the usercode to set
	 */
	public void setUsercode(String usercode) {
		this.usercode = usercode;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

}
